<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			if(window.localStorage){
				alert(1);
				alert("浏览器支持localstorage");
				return;
			}else{
				alert("浏览器支持localstorage");
				//主逻辑业务
			}
		</script>
	</body>
</html>
